package com.hopes.bizz.risk.transfer.bean.dto;

import com.hopes.bizz.risk.transfer.validation.group.SeqOne;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author lyb
 * @version 1.0
 * @description: 风险单元
 * @date 2024/1/31 16:13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RiskUnitDto extends RiskBaseLogicDto {

    private static final long serialVersionUID = 2314683706129423429L;

    @NotBlank(message = "风险分析单元名称不能为空", groups = SeqOne.class)
    private String riskUnitName;

    @NotBlank(message = "风险分析对象编码不能为空", groups = SeqOne.class)
    private String hazardCode;

    @NotBlank(message = "责任部门不能为空", groups = SeqOne.class)
    private String hazardDep;

    @NotBlank(message = "责任部门负责人不能为空", groups = SeqOne.class)
    private String hazardLiablePerson;
}
